<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../lib/vue-2.6.12.js"></script>
</head>

<body>
    <a href="#" @click.prevent></a>
    <div id="app">
<input type="text" id="usename" v-model="note" >
<button @click="add"> add</button>
<ul>
    <li v-for="(item,index) in list">{{item}}-{{index}}

        <button @click="del(index)">*</button>
        <button @click.stop="hanclick($event,2)">
            <button @click="hand"></button>
        </button>
    </li>
    
</ul>
    
</div>
</body>
<script>
    new Vue({
       el:"#app",
       data:{
           note:"",
            list:[1,2,3,4],
            count:0
       },
       methods:{
           add(){
                   this.list.push(this.note)
           },
           del(index){
               this.list.splice(index,1)

           },
           hanclick(eve,data){
               eve.stopPropagation();
               console.log(eve.target);
               this.count+=data;

           },
           hand(){

           }



       }

    })
</script>
</html>